import { PlusOutlined } from '@ant-design/icons';
import { Button, Card, Layout, List, Typography } from 'antd';
import React, { Component } from 'react';
import { PageContainer } from '@ant-design/pro-layout';
import { connect } from 'umi';
import styles from './style.less';

import CameraBack from '@/pages/camera/replay/components/CameraBack';
class CardList extends Component {
  componentDidMount() {
    console.log(this.props.location.query.date)
  }

  render() {
    return (
      <Layout className={styles.cameraContainer}>
        <CameraBack selectChannelId={this.props.location.query.channelId} selectDate={this.props.location.query.date} ></CameraBack>
      </Layout>
    );
  }
}

export default connect(({ cameraHistory, loading }) => ({
  cameraHistory,
  loading: loading.models.cameraHistory,
}))(CardList);
